
#include "XmlNode.h"

void XmlNode::Output(wostream &out, int iIndent){
    
    // Control the indental format
    for(int j  = 0;j < iIndent; ++ j) out << "  ";
    
    out << wLeftBra << this->GetName() << " ";
    
    ATTRIBUTES::iterator it = attributes.begin();
    
    while(it != attributes.end()){
        
        out << it->first << "=" << wQuote << it->second << wQuote << wWhiteSp;
        
        ++ it;
    
    }
    
    out << wSlash << wRightBra << endl;
}